package com.zs.admin.controller.wisdbook;

import com.zs.admin.service.wisdbook.IWisdbookMarkerImgService;
import com.zs.admin.validate.wisdbook.WisdbookPageMarkSearchValidate;
import com.zs.common.aop.DevNotLogin;
import com.zs.common.aop.NotLogin;
import com.zs.common.core.AjaxResult;
import io.swagger.annotations.ApiOperation;
import org.apache.logging.log4j.core.config.plugins.validation.constraints.Required;
import org.springframework.stereotype.Controller;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import javax.validation.constraints.NotBlank;

@Controller
@RequestMapping("api/wisdbook/page/markImg")
public class WisdbookMarkerImgController {

    @Resource
    IWisdbookMarkerImgService iWisdbookMarkerImgService;

    @NotLogin
    @GetMapping("/render.png")
    @ApiOperation(value="智书标记块数据列表")
    public void render(HttpServletResponse response, @Required @NotBlank String markId) {
        iWisdbookMarkerImgService.render(response,markId);
    }

}
